package com.yuandian.api.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 未确认URL资源表-实体
 * @author zfsn
 * @date 2023-3-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "未确认URL资源表", description = "")
@TableName("conf_unconfirmed_url")
public class ConfUnconfirmedUrl extends BasePage<ConfUnconfirmedUrl> {

	/**
	 * 主键，唯一标识数据
	 */
	@ApiModelProperty(value = "主键", notes = "主键，唯一标识数据")
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 服务资源编码
	 */
	@ApiModelProperty(value = "服务资源编码", notes = "服务资源编码")
	private String resourceCode;

	/**
	 * 前缀URL
	 */
	@ApiModelProperty(value = "前缀URL", notes = "前缀URL")
	private String prefixUrl;

	/**
	 * 前缀URL
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "前缀URL(复数)", notes = "前缀URL(复数)")
	private List<String> prefixUrls;



	/**
	 * 原始URL
	 */
	@ApiModelProperty(value = "原始URL", notes = "原始URL")
	private String oriUrl;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人", notes = "创建人")
	private String createBy;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间", notes = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新人
	 */
	@ApiModelProperty(value = "更新人", notes = "更新人")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间", notes = "更新时间")
	private LocalDateTime updateTime;

	/**
	 * 是否逻辑删除，0：否、1：是
	 */
	@ApiModelProperty(value = "是否逻辑删除", notes = "是否逻辑删除，0：否、1：是")
	private Integer isDel;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注", notes = "备注")
	private String remarks;

	/**
	 * 所属网端id(多选)
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "所属网端id(多选)", notes = "所属网端id(多选)")
	private List<Integer> segmentIds;


	/**
	 * 所属系统id
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "所属系统id", notes = "所属系统id")
	private Integer systemId;

	/**
	 * 确认URL
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "确认URL", notes = "确认URL")
	private String confirmUrl;


	/**
	 * 统计数
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "统计数", notes = "统计数")
	private Integer urlCount;

	/**
	 * 加入黑名单的来源
	 * 0：来源前缀
	 * 1：来源原始URL
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "加入黑名单的来源", notes = "加入黑名单的来源")
	private Integer sourceStatus;

}